<?php

declare(strict_types=1);

namespace App\Model\Logistics;

use App\Model\Model;
use App\Traits\Model\Logistics\Logistic as LogisticTraits;

/**
 * @property int $id 
 * @property string $no 运单号码
 * @property string $code 快递公司编码
 * @property int $delivery_status 物流状态|["快递收件(揽件)","在途中","正在派件","已签收","派送失败（无法联系到收件人或客户要求择日派送，地址不详或手机号不清）","疑难件（收件人拒绝签收，地址有误或不能送达派送区域，收费等原因无法正常派送）","退件签收"]
 * @property string $courier_phone 快递小哥电话
 * @property array $response 响应内容
 * @property int $frequency_num 调用次数
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class Logistic extends Model
{
    use LogisticTraits;

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'logistics';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'no', 'code', 'delivery_status', 'courier_phone', 'response', 'frequency_num', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'delivery_status' => 'integer', 'frequency_num' => 'integer', 'response' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
